package com.jungle.design.mode.service.impl.hanlder;

import com.jungle.design.mode.handler.MyFactory;
import com.jungle.design.mode.handler.MyHandler;
import org.springframework.stereotype.Component;

/**
 * @author Jungle
 * @create 2024-07-07 23:34
 */
@Component
public class ZhangSanHandler implements MyHandler {

    public void aaa(String name) {
        System.out.println(name+"完成了任务");
    }
    @Override
    public void afterPropertiesSet() throws Exception {
        MyFactory.register("张三",this);
    }
}
